#FILE NAME: 6711Fluence_CLRPSpectra.txt
#MC CODE: TOPAS V3.8 
#DESCRIPTION: Test case 0 – Fluence scorer ussed for the WAFAC air kerma calculation for 6711 seed; see [reference]
#DISCLAIMER: This file (and associated code/files) is provided in the hope that it will be useful
#but without any warranty; without even the implied warranty of fitness for a particular
#purpose. See full disclaimer at [link]
#COPYRIGHT (C) 2023 Luc Beaulieu (Luc.Beaulieu@phy.ulaval.ca) and Audran Poher
#REDISTRIBUTION: redistribution of this and all associated files is NOT permitted.
#SOURCE OF THIS FILE: [link]

includeFile = 6711Geo_CLRPSpectra.txt

# ====================================================== FB #

i:Ts/Seed            = 1
i:Ts/NumberOfThreads = 0

ic:So/ActiveSource/NumberOfHistoriesInRun    = 10000000

s:Sc/FluenceScorer/OutputFile = "Fluence6711_CLRP"

#b:Gr/Enable           = "T"
#Ts/UseQt = "True"
#b:Ts/PauseBeforeQuit  = "T"

i:Ts/ShowHistoryCountAtInterval = 1000000
b:Ts/IncludeTimeInHistoryCount  = "True"


# ====================================================== #
#                         SCORER                         #
# ====================================================== #

##### GEOMETRY #####
s:Ge/AirCell/Type         = "TsBox"
s:Ge/AirCell/Material     = "G4_AIR"
s:Ge/AirCell/Parent       = "World"
d:Ge/AirCell/HLX          = 1.35 cm
d:Ge/AirCell/HLY          = 0.025 cm
d:Ge/AirCell/HLZ          = 1.35 cm
d:Ge/AirCell/TransY       = 10.025 cm
s:Ge/AirCell/Color        = "White"
#s:Ge/AirCell/DrawingStyle = "Solid"

##### SCORER #####
s:Sc/FluenceScorer/Quantity                   = "Fluence"
sv:Sc/FluenceScorer/Report                    = 3 "Sum" "Mean" "Standard_Deviation"
s:Sc/FluenceScorer/Component                  = "AirCell"
b:Sc/FluenceScorer/OutputToConsole            = "FALSE"
s:Sc/FluenceScorer/IfOutputFileAlreadyExists  = "Increment"
i:Sc/FluenceScorer/EBins                      = 355
d:Sc/FluenceScorer/EBinMin                    = 0.1 keV
d:Sc/FluenceScorer/EBinMax                    = 35.6 keV
sc:Sc/FluenceScorer/EBinEnergy                = "PreStep"
sv:Sc/FluenceScorer/OnlyIncludeParticlesNamed = 1 "gamma"



#=====================
#Graphics Components
#=====================

#Ge/QuitIfOverlapDetected     = "F"
s:Gr/ViewA/Type              = "OpenGL"
#i:Gr/ViewA/WindowSizeX      = 1024
#i:Gr/ViewA/WindowSizeY      = 768
d:Gr/ViewA/Theta             = 90. deg
d:Gr/ViewA/Phi               = 0. deg
#s:Gr/ViewA/Projection       = "Perspective"
#d:Gr/ViewA/PerspectiveAngle = 30. deg
u:Gr/ViewA/Zoom              = 1
b:Gr/MyGraphic1/IncludeAxes = "True" # defaults to "False"
s:Gr/ViewA/CenterOn = "World"
